package fox.framework.rpc.context.definition;

/**
 * @author cuichao
 * @Description: AbstractRpcDefinition
 * @Date: create in 2021/3/5 16:25
 */
public class AbstractRpcDefinition implements RpcDefinition{

    private String applicationName;

    private String group;

    private String metaspace;

    private String messageConverterName;

    private Class<?> serviceInterface;

    private boolean lazy;

    private boolean provider;


    @Override
    public String applicationName() {
        return applicationName;
    }

    @Override
    public String group() {
        return group;
    }

    @Override
    public String metaspace() {
        return metaspace;
    }

    @Override
    public Class<?> serviceInterface() {
        return serviceInterface;
    }

    @Override
    public boolean isLazy() {
        return lazy;
    }

    @Override
    public boolean isProvider() {
        return provider;
    }

    @Override
    public String MessageConverterName() {
        return null;
    }

    void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }


    void setGroup(String group) {
        this.group = group;
    }


    void setMetaspace(String metaspace) {
        this.metaspace = metaspace;
    }


    void setServiceInterface(Class<?> serviceInterface) {
        this.serviceInterface = serviceInterface;
    }


    void setLazy(boolean lazy) {
        this.lazy = lazy;
    }


    void setProvider(boolean provider) {
        this.provider = provider;
    }

    void setMessageConverterName(String messageConverterName) {
        this.messageConverterName = messageConverterName;
    }

}
